

            
// This code is a generated code by a tool
// designed and coded by Shohdi Mohamed Elsheemy ( shohdi@gmail.com )

            
using System;
using System.Collections.Generic;
using System.Web;
namespace DatabaseComponent
{
[Serializable]
public partial class sysdiagrams
{
System.String _name ="";
public System.String name
{
get { return _name;}
set { _name = value;}
}
System.Int32 _principal_id =-1;
public System.Int32 principal_id
{
get { return _principal_id;}
set { _principal_id = value;}
}
System.Int32 _diagram_id =-1;
public System.Int32 diagram_id
{
get { return _diagram_id;}
set { _diagram_id = value;}
}
System.Int32? _version =null;
public System.Int32? version
{
get { return _version;}
set { _version = value;}
}
byte[] _definition =null;
public byte[] definition
{
get { return _definition;}
set { _definition = value;}
}
public sysdiagrams()
{
}
public sysdiagrams(System.String __name,System.Int32 __principal_id,System.Int32? __version,byte[] __definition)
{
_name = __name;
_principal_id = __principal_id;
_version = __version;
_definition = __definition;
}
public sysdiagrams(System.String __name,System.Int32 __principal_id,System.Int32 __diagram_id,System.Int32? __version,byte[] __definition)
{
_name = __name;
_principal_id = __principal_id;
_diagram_id = __diagram_id;
_version = __version;
_definition = __definition;
}


             public override bool Equals(object obj)
         {
             if (obj is sysdiagrams)
             {
                 sysdiagrams newObj = (sysdiagrams)obj;

                 if (newObj.diagram_id == this.diagram_id )
                 {
                     return true;
                 }
                 else
                 {
                     return false;
                 }
             }

             else
             {
                 return false;
             }

            
         }            











             }
}
